home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / ASM-MIPS / PCI.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  2KB  |  43 lines

  1. /* $Id: pci.h,v 1.4 1998/05/08 01:44:30 ralf Exp $
  2.  *
  3.  * This file is subject to the terms and conditions of the GNU General Public
  4.  * License.  See the file "COPYING" in the main directory of this archive
  5.  * for more details.
  6.  *
  7.  * Declarations for the MIPS specific implementation of the PCI BIOS32 services.
  8.  */
  9. #ifndef __ASM_MIPS_PCI_H
  10. #define __ASM_MIPS_PCI_H
  11.  
  12. struct pci_ops {
  13.     unsigned long (*pcibios_fixup) (void);
  14.     int (*pcibios_read_config_byte) (unsigned char bus,
  15.                                      unsigned char dev_fn,
  16.                                      unsigned char where,
  17.                                      unsigned char *val);
  18.     int (*pcibios_read_config_word) (unsigned char bus,
  19.                                      unsigned char dev_fn,
  20.                                      unsigned char where,
  21.                                      unsigned short *val);
  22.     int (*pcibios_read_config_dword) (unsigned char bus,
  23.                                       unsigned char dev_fn,
  24.                                       unsigned char where,
  25.                                       unsigned int *val);
  26.     int (*pcibios_write_config_byte) (unsigned char bus,
  27.                                       unsigned char dev_fn,
  28.                                       unsigned char where,
  29.                                       unsigned char val);
  30.     int (*pcibios_write_config_word) (unsigned char bus,
  31.                                       unsigned char dev_fn,
  32.                                       unsigned char where,
  33.                                       unsigned short val);
  34.     int (*pcibios_write_config_dword) (unsigned char bus,
  35.                                        unsigned char dev_fn,
  36.                                        unsigned char where,
  37.                                        unsigned int val);
  38. };
  39.  
  40. extern struct pci_ops *pci_ops;
  41.  
  42. #endif /* __ASM_MIPS_PCI_H */
  43.